package com.nosnow.edu.mapper;

import com.nosnow.edu.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nosnow.edu.entity.vo.CoursePublishVo;
import com.nosnow.edu.entity.vo.front.CourseWebVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author bingheng
 * @since 2020-04-04
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程Id，查询用户课程确认时的一些信息
     * @param courseId
     * @return
     */
    CoursePublishVo getPublishCourseInfo(String courseId);

    /**
     * 根据课程Id查询课程信息
     * @param courseId
     * @return
     */
    CourseWebVo selectBaseCourseInfo(String courseId);
}
